ds_queue_write

Writes the data structure out as a string.

语法:

ds_queue_write(id);


参数 描述
id 要写入的数据结构的id。


返回: String(字符串)


描述

This function returns a string which can then be stored or transferred to another data structure using the ds_queue_read function.

注意:返回的字符串不是人类可以理解的字符串,而是数据结构内容的转储


例如:

var str;
ini_open("save.ini");
str =ds_queue_write(queue);
ini_write_string("Queues", "0", str);
ds_queue_clear(queue);
ini_close();

The above code opens an ini file and then writes a string containing the information stored in the ds_queue indexed in the variable "queue". The queue is then cleared and the ini file closed.


上一页: Queues
下一页: ds_queue_create
© Copyright YoYo Games Ltd. 2018 All Rights Reserved